package com.example.travel.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @Author : LinQingLiang
 * @file : LoginUserRequest.java
 * @Since : 2023/1/20 18:37
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户信息进行登录")
public class LoginUserRequest {

    @ApiModelProperty(value = "账号",required = true)
    @NotBlank(message = "账号不能为空")
    private String username;

    @ApiModelProperty(value = "密码",required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

}
